package 第二章练习;
import java.io.*;
public class lianxi79 {
    public static void main(String[] args)  throws Exception{
        File file = new File("D:" + File.separator + "Demo01" + File.separator + "lianxi77.java");
        if(file.exists()){
            try (InputStream input = new FileInputStream(file)){
                byte data[] = new byte[1024];
                int len = input.read(data);
                System.out.println("读取到的内容【" + new String(data,0,len) +"】");
            }catch (Exception e) {}
        }
    }
}
